case 4 : printf("%u\n",JulianMonthDays(readshortcardmonth(),readintyear()));
break;
case 5 : printf("%u\n",GregorianMonthDays(readshortcardmonth(),readintyear()));
break;
case 6 : printf("%u\n",HeisMonthDays(readshortcardmonth(),readintyear()));
break;
case 7 : printf("%u\n",JulianYearDays(readintyear()));
break;
case 8 : printf("%u\n",GregorianYearDays(readintyear()));
break;
case 9 : printf("%u\n",HeisYearDays(readintyear()));
break;
case 10 : printf("%d\n",JulianDayDiff(readshortcardday(),readshortcardmonth(),readintyear(),readshortcardday(),readshortcardmonth(),readintyear()));
break;
case 11 : printf("%d\n",GregorianDayDiff(readshortcardday(),readshortcardmonth(),readintyear(),readshortcardday(),readshortcardmonth(),readintyear()));
break;
case 12 : printf("%d\n",HeisDayDiff(readshortcardday(),readshortcardmonth(),readintyear(),readshortcardday(),readshortcardmonth(),readintyear()));
break;
case 13 : if (JulianDaySmaller(readshortcardday(),readshortcardmonth(),readintyear(),readshortcardday(),readshortcardmonth(),readintyear()))
printf("TRUE\n");
else
printf("FALSE\n");
break;
case 14 : if (GregorianDaySmaller(readshortcardday(),readshortcardmonth(),readintyear(),readshortcardday(),readshortcardmonth(),readintyear()))
printf("TRUE\n");
else
printf("FALSE\n");
break;
case 15 : if (HeisDaySmaller(readshortcardday(),readshortcardmonth(),readintyear(),readshortcardday(),readshortcardmonth(),readintyear()))
printf("TRUE\n");
else
printf("FALSE\n");
break;
case 16 : wd = JulianWeekday(readshortcardday(),readshortcardmonth(),readintyear());
switch (wd)
{case dayerr : printf("dayerr!\n");
break;
case Monday : printf("Monday\n");
break;
case Tuesday : printf("Tuesday\n");
break;
case Wednesday : printf("Wednesday\n");
break;
case Thursday : printf("Thursday\n");
break;
case Friday : printf("Friday\n");
break;
case Saturday : printf("Saturday\n");
break;
case Sunday : printf("Sunday\n");
break;
default : printf("Illegal Code!\n");
}
break;
case 17 : wd = GregorianWeekday(readshortcardday(),readshortcardmonth(),readintyear());
switch (wd)
{case dayerr : printf("dayerr!\n");
break;
case Monday : printf("Monday\n");
break;
case Tuesday : printf("Tuesday\n");
break;
case Wednesday : printf("Wednesday\n");
break;
case Thursday : printf("Thursday\n");
break;
case Friday : printf("Friday\n");
break;
case Saturday : printf("Saturday\n");
break;
case Sunday : printf("Sunday\n");
break;
default : printf("Illegal Code!\n");
}
break;
case 18 : wd = HeisWeekday(readshortcardday(),readshortcardmonth(),readintyear());
switch (wd)
{case dayerr : printf("dayerr!\n");
break;
case Monday : printf("Monday\n");
break;
case Tuesday : printf("Tuesday\n");
break;
case Wednesday : printf("Wednesday\n");
break;
case Thursday : printf("Thursday\n");
break;
case Friday : printf("Friday\n");
break;
case Saturday : printf("Saturday\n");
break;
case Sunday : printf("Sunday\n");
break;
default : printf("Illegal Code!\n");
}
break;
case 19 : printf("%u\n",JulianDaysBeforeWeekday(readshortcardday(),readshortcardmonth(),readintyear(),readweekday()));
break;
case 20 : printf("%u\n",GregorianDaysBeforeWeekday(readshortcardday(),readshortcardmonth(),readintyear(),readweekday()));
break;
case 21 : printf("%u\n",HeisDaysBeforeWeekday(readshortcardday(),readshortcardmonth(),readintyear(),readweekday()));
break;
case 22 : printf("%u\n",JulianDaysAfterWeekday(readshortcardday(),readshortcardmonth(),readintyear(),readweekday()));
break;
case 23 : printf("%u\n",GregorianDaysAfterWeekday(readshortcardday(),readshortcardmonth(),readintyear(),readweekday()));
break;
case 24 : printf("%u\n",HeisDaysAfterWeekday(readshortcardday(),readshortcardmonth(),readintyear(),readweekday()));
break;
case 25 : JulianDiffDate(readshortcardday(),readshortcardmonth(),readintyear(),readintdays(),&d,&m,&y);
printf("%u.%u.%d\n",d,m,y);
break;
case 26 : GregorianDiffDate(readshortcardday(),readshortcardmonth(),readintyear(),readintdays(),&d,&m,&y);
printf("%u.%u.%d\n",d,m,y);
break;
case 27 : HeisDiffDate(readshortcardday(),readshortcardmonth(),readintyear(),readintdays(),&d,&m,&y);
printf("%u.%u.%d\n",d,m,y);
break;
case 28 : printf("%u\n",JYearToScaliger(readintyear()));
break;
case 29 : printf("%u\n",GYearToScaliger(readintyear()));
break;
case 30 : printf("%u\n",HYearToScaliger(readintyear()));
break;
case 31 : printf("%d\n",ScaligerYearToJ(readcardyear()));
break;
case 32 : printf("%d\n",ScaligerYearToG(readcardyear()));
break;
case 33 : printf("%d\n",ScaligerYearToH(readcardyear()));
break;
case 34 : printf("%u\n",JSYearToJD(readcardyear()));
break;
case 35 : printf("%u\n",GSYearToJD(readcardyear()));
break;
case 36 : printf("%u\n",HSYearToJD(readcardyear()));
break;
case 37 : printf("%u\n",JDtoMJD(readlongcarddays()));
break;
case 38 : printf("%u\n",MJDtoJD(readlongcarddays()));
break;
case 39 : printf("%u\n",JulianToJD(readshortcardday(),readshortcardmonth(),readintyear()));
break;
case 40 : printf("%u\n",GregorianToJD(readshortcardday(),readshortcardmonth(),readintyear()));
break;
case 41 : printf("%u\n",HeisToJD(readshortcardday(),readshortcardmonth(),readintyear()));
break;
case 42 : printf("%f\n",TimeToJD(readshortcardhour(),readshortcardmin(),readshortcardsec()));
break;
case 43 : JDToTime(readrealtime(),&h,&m,&s);
printf("%u:%u:%u\n",h,m,s);
break;
case 44 : printf("%u\n",GregorianMoonAge(readshortcardday(),readshortcardmonth(),readintyear()));
break;
case 45 : GregorianEaster(readintyear(),&d,&m);
printf("%u.%u.\n",d,m);
break;
case 46 : printf("%d\n",TimeZoneFactor(readshortintdegree()));
break;
case 47 : printf("%d\n",LMT(readlongcardsecs(),readrealmeridian(),readrealpos()));
break;
case 48 : printf("%u\n",TimeToSec(readshortcardhour(),readshortcardmin(),readshortcardsec()));
break;
case 49 : SecToTime(readlongcardsecs(),&h,&m,&s);
printf("%u:%u:%u\n",h,m,s);
break;
case 50 : printf("%u\n",JulianWeek(readshortcardday(),readshortcardmonth(),readintyear()));
break;
case 51 : printf("%u\n",GregorianWeek(readshortcardday(),readshortcardmonth(),readintyear()));
break;
case 52 : printf("%u\n",HeisWeek(readshortcardday(),readshortcardmonth(),readintyear()));